EntryWidget

interface EntryWidget<T>

Interface handles an Entry creating a ClickableWidget

Expectation is that a new widget is made on every call

Author

fzzyhmstrs

Since

0.2.0

Inheritors

Functions

Link copied to clipboard
open fun widgetAndTooltipEntry(choicePredicate: ChoiceValidator<T> = ChoiceValidator.any()): ClickableWidget

Builds a new ClickableWidget and applies a tooltip to it. This shouldn't need to be overridden in most cases

Link copied to clipboard
abstract fun widgetEntry(choicePredicate: ChoiceValidator<T> = ChoiceValidator.any()): ClickableWidget

Builds a new ClickableWidget for use in a config GUI. If the widget is presenting options that could be filtered by the optional ChoiceValidator, those possible selections should be filtered in some way by the validator before presenting to the user.